import fs from 'fs'
import path from 'path'
import { build } from './src/client/build.js'

const projectPath = process.cwd()
const packagePath = path.join(projectPath, 'package.json')
const packageJson = JSON.parse(await fs.readFileSync(packagePath, 'utf-8'))

for (const page of packageJson.pages) {
  await build(page)
}